package com.lzy.product.apis.impl;

import com.github.pagehelper.PageInfo;
import com.lzy.framework.core.orm.db.Pager;
import com.lzy.product.apis.ProjectServiceApi;
import com.lzy.product.dtos.ProjectDto;
import com.lzy.product.service.ProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class ProjectServiceApiImpl implements ProjectServiceApi {
    @Autowired
    ProjectService projectService;

    @Override
    public void add(ProjectDto projectDto) {
        projectService.add(projectDto);
    }

    @Override
    public PageInfo<ProjectDto> queryList(Pager pager, ProjectDto projectDto) {
        return projectService.queryList(pager,projectDto);
    }

    @Override
    public void delete(Long id) {
        projectService.delete(id);
    }

    @Override
    public ProjectDto getById(Long id) {
        return projectService.getById(id);
    }

    @Override
    public void update(ProjectDto project) {
        projectService.update(project);
    }

    @Override
    public List<ProjectDto> getList() {
        return projectService.getList();
    }

    @Override
    public List<ProjectDto> getList(ProjectDto dto) {
        return projectService.getList(dto);
    }
}
